<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<div class='common'>
<?php echo html::anchor('Post/ReplyPost/' . $threadid, "Reply Post", array('class'=>'postbtn'));?>
</div>
<div id="template" class="mainbox">
    <div class="forumlist">
		<div><H3 ><strong> <?php echo $postTitle ?></strong></H3>
		</div>
	</div>

	<?php foreach($posts as $post) {?>
	 <div class="postList">
		<div class="PostListLeft caid">
					<?php echo html::anchor('home/news', 'add friend'); ?>

					 <b class="fl black"><a href="u-htm-action-show-uid-1168922.html" target="_blank"><? echo $post->Author->UserExt->ue_name ?></a></b>

					<? echo $post->Author->UserExt->ue_description ?>

					<div class="user-pic">
					<?php echo html::image('images/'.$post->Author->UserExt->id.'portrait.gif');?>
					</div>
					
					级别:<? echo $post->Author->UserExt->ue_description ?><br>
					<?php echo html::image('images/3.gif');?>

					
							<div class="listread">

										<a href="u-htm-action-show-uid-1168922.html" title="查看作者资料" class="readprofile">作者资料</a>
										<a title="发送短消息" class="readmessage" onclick="sendmsg('pw_ajax.php?action=msg&amp;touid=1168922','','sf_3')" style="cursor: pointer;">发送短消息</a>

							</div>
							UID: <? echo $post->Author->UserExt->id ?><br>
							精华:

							<? echo $post->Author->UserExt->ue_significant ?><br>
							发帖: <? echo $post->Author->UserExt->ue_post ?><br>
							威望: <? echo $post->Author->UserExt->ue_prestige ?> 点<br>
							金钱: <? echo $post->Author->UserExt->ue_money ?>两<br>

							贡献值: <? echo $post->Author->UserExt->ue_devote ?>点<br>

							PW积分: <? echo $post->Author->UserExt->ue_score ?>点<br>

							在线时间: <? echo $post->Author->UserExt->ue_online ?>(时)<br>

							注册时间: <? echo $post->Author->createtime ?><br>
							最后登录: <? echo $post->Author->lastlogintime ?>  
				
			</div>
		<div class="PostListCotent caid">
			<?php echo $post->pos_content ?>
		</div>
		<div style="font: 0px/0px sans-serif;clear: both;display: block"> </div>
		</div>
		
	<?php }
	?>
	<div class='common'>
		<?php echo html::anchor('Post/ReplyPost/' . $threadid, "Reply Post", array('class'=>'postbtn'));?>
	</div>
	<?php if(!empty($replypost)){ ?>
		<div class='common' style='border:1px solid #9DB3C5;'>
		<?php
			echo form::open_div('<h3>快速回复主题</h3>',array('class'=>'mainbox','align'=>'left'));
			echo $replypost ; 
			echo form::close_div();
		?>
		</div>
	 <?php }?>
</div>